<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>我的软件列表</title>
<style type="text/css">
h1 {
	color: #494949;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.1em;
}

input {
	font-size: 12px;
	margin-right: 3px;
}

span.title {
	color: #006600;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 120%;
}

ul.errorMessage,ul.errorMessage li {
	display: inline;
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	color: #FF3300;
}

#wrapper {
	margin: 0 auto;
	width: 950px;
}

a {
	text-decoration: none;
	color: #336699;
	font-size: 12px;
	margin-right: 6px;
}

a:hover {
	text-decoration: underline;
}

ul.list,li.item {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

li.item {
	border-bottom: 1px solid #EEEEEE;
	margin: 5px 0px;
	padding: 5px 0px;
	min-height: 55px;
}

div.desc {
	padding: 5px 28px;
	color: #666666;
	font-size: 12px;
	line-height: 162%;
}

div.oper {
	margin-left: 28px;
}
</style>
<s:head />
</head>
<body>
<div id="wrapper">
<h1>我的软件列表</h1>
<s:actionerror /> <s:if test="developer.softwares.size()==0">
	你可以在这里添加软件了，这就开始吧。<br />
</s:if> <s:else>
	<ul class="list">
		<s:iterator value="developer.softwares">
			<li class="item">
				<span class="title"><s:property value="name" /></span>
				<div class="desc"><s:property value="description" /></div>
				<br />
				<div class="oper">
					<s:url var="url" action="editapp">
						<s:param name="software.id">
							<s:property value="id" />
						</s:param>
					</s:url> 
					<s:a href="%{url}">编辑</s:a>
					<s:url var="url" action="delapp">
						<s:param name="software.id">
							<s:property value="id" />
						</s:param>
					</s:url> 
					<s:a href="%{url}" onclick="return window.confirm('确定要删除吗?');">删除</s:a>
					<s:url var="url" action="appprice">
						<s:param name="software.id">
							<s:property value="id" />
						</s:param>
					</s:url> <s:a href="%{url}">设置价格策略</s:a>
				</div>
			</li>
		</s:iterator>
	</ul>
</s:else> <s:form action="newapp" method="get">
	<s:submit value="添加一个软件" />
</s:form></div>
</body>
</html>